@extends("page")
@section("movie_class")
    <h3>电影类别管理页面</h3>
@endsection
<html>

<body>
<div class="main-content">

    <div class="page-content">
        <div class="container-fluid">

            <!-- start page title -->
            <div class="row">
                <div class="col-sm-6">
                    <div class="state-information d-none d-sm-block">

                    </div>
                </div>
            </div>


            <div class="row">
                <div class="col-10" style="margin: auto">
                    <div class="card">
                        <div class="card-body">
                            <div class="table-responsive">
                                <a href="add">
                                    <button class="btn btn-info">添加</button>
                                </a>
                                <table class="table table-bordered col-6" border="1px" style="text-align: center">
                                    <tr>
                                        <td>ID</td>
                                        <td>name_ch</td>
                                        <td>name_uy</td>
                                        <td>order</td>
                                        <td>操作</td>
                                    </tr>
                                    @foreach($data as $dt)
                                    <tr>
                                        <td>{{$dt->id}}</td>
                                        <td>{{$dt->name_ch}}</td>
                                        <td>{{$dt->name_uy}}</td>
                                        <td>{{$dt->order}}</td>
                                        <td>
                                            <a href="update?id={{$dt->id}}"><button style=";background-color: #0077ff;border: none;border-radius: 5px;height: 30px;width: 50px;outline: none;  margin: auto 10px">修改</button></a>
                                            <a href="delete?id={{$dt->id}}"><button style=";background-color: orangered;border: none;border-radius: 5px;height: 30px;width: 50px;outline: none;margin: auto 10px">删除</button></a>
                                        </td>
                                    </tr>
                                    @endforeach
                                </table>
                            </div>

                        </div>
                    </div>
                </div> <!-- end col -->
            </div> <!-- end row -->

        </div> <!-- container-fluid -->
    </div>
    <!-- End Page-content -->
</div>
</body>
</html>
